package com.wangyg.juc.ProducerConsumer.version1;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * Created by wangyg6 on 2018/7/17.
 */
public class psvm {
	private final String value = "123";

	public static void main(String[] args) {
	/*	String a = new String("a23");
		a.intern();
		String b=new String("022");
		int i = a.compareTo(b);
		System.out.println(i);*/

		List<Object> list = Arrays.asList(123, "abc", "456");
		Collections.sort(list, (a,b)->a.hashCode()-b.hashCode());
		System.out.println(list);
	}

	{
		psvm psvm = new psvm();
		String value1 = psvm.value;
	}

}
